package com.wang.designPattern.abstractFactory;

import com.wang.designPattern.factory.*;
/**
 * @description
 * @Author wangzilong
 * @Date 2025/1/13 7:53
 */
public class ShapeFactory extends AbstractFactory{
    @Override
    public Color getColor(ColorEnum color) {
        return null;
    }

    @Override
    public Shape getShape(ShapeType shape) {
        switch (shape) {
            case CIRCLE:
                return new Circle();
            case RECTANGLE:
                return new Rectangle();
            case SQUARE:
                return new Square();
            default:
                return null;
        }
    }
}
